# coding:utf-8
# Author : hiicy redldw
# Date : 2019/03/01

from sklearn.tree import DecisionTreeClassifier
from sklearn.svm import SVC,SVR
from sklearn.ensemble import RandomForestClassifier
from sklearn.naive_bayes import GaussianNB,MultinomialNB,BernoulliNB
from sklearn.naive_bayes import GaussianNB,MultinomialNB,BernoulliNB
from sklearn.ensemble import AdaBoostClassifier,AdaBoostRegressor
import numpy as np


def jisuanjinlin(hangdata, data):
    return [1]


def LLE():
    data = [[2, 1, 4, 3, 5],
            [3, 2, 6, 3, 0.8],
            [0.5, 3, 5, 1, 6],
            [2, 5, 0.4, 1, 5],
            [0.9, 2, 3, 9, 2]]
    dpie = 3
    kneighboor = 2
    neighboor = {}
    for i in range(len(data)):
        neighboor[i] = jisuanjinlin(data[i], data)

    Weights = {}
    for i in neighboor.keys():
        neighbs = neighboor.get(i)
        for j in neighboor:
            # TODO: 回来修改
            # Weights[i][j] =
            pass